package com.example.taskmanager;

public class Task {
    private int id;
    private String name;
    private String description;
    private String status;
    private String dueDate;
    private String groupName;

    public Task(int id, String name, String description, String status, String dueDate, String groupName) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.status = status;
        this.dueDate = dueDate;
        this.groupName = groupName;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public String getStatus() {
        return status;
    }

    public String getDueDate() {
        return dueDate;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return name + " - " + description + " - " + status + " - " + dueDate + " - " + groupName;
    }
}
